package com.baosight.risk.service.riri.entity;

import javax.persistence.*;

import com.baosight.risk.base.entity.BaseEntity;
import lombok.Data;

/**
 * Table: T_RIRI_RISK_HIS
 */
@Data
@Table(name = "T_RIRI_RISK_HIS")
public class RiriRiskHis extends BaseEntity {

    /**
     * 风险点ID
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_ID
     * Nullable:  false
     */
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 风险编码
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_NO
     * Nullable:  false
     */
    @Column(name = "RISK_NO")
    private String riskNo;

    /**
     * 风险名称
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_NAME
     * Nullable:  true
     */
    @Column(name = "RISK_NAME")
    private String riskName;

    /**
     * 风险描述
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_DESC
     * Nullable:  true
     */
    @Column(name = "RISK_DESC")
    private String riskDesc;

    /**
     * 风险大类（一级）
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_TYPE
     * Nullable:  true
     */
    @Column(name = "RISK_TYPE")
    private String riskType;

    /**
     * 风险大类名称
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_TYPE_NAME
     * Nullable:  true
     */
    @Column(name = "RISK_TYPE_NAME")
    private String riskTypeName;

    /**
     * 风险细类编码（末级）
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    DETAIL_TYPE
     * Nullable:  true
     */
    @Column(name = "DETAIL_TYPE")
    private String detailType;

    /**
     * 风险细类名称（末级）
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    DETAIL_TYPE_NAME
     * Nullable:  true
     */
    @Column(name = "DETAIL_TYPE_NAME")
    private String detailTypeName;

    /**
     * 状态（01-草稿；02-提交；03-领导审核；09-已关闭）
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    STATUS
     * Nullable:  true
     */
    @Column(name = "STATUS")
    private String status;

    /**
     * 状态说明
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    STATUS_NAME
     * Nullable:  true
     */
    @Column(name = "STATUS_NAME")
    private String statusName;

    /**
     * 所属单位
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    COMP_CODE
     * Nullable:  true
     */
    @Column(name = "COMP_CODE")
    private String compCode;

    /**
     * 所属单位名称
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @Column(name = "COMP_NAME")
    private String compName;

    /**
     * 所属部门
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    DEPT_CODE
     * Nullable:  true
     */
    @Column(name = "DEPT_CODE")
    private String deptCode;

    /**
     * 所属部门名称
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    DEPT_NAME
     * Nullable:  true
     */
    @Column(name = "DEPT_NAME")
    private String deptName;

    /**
     * 年度
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    ACCT_YEAR
     * Nullable:  true
     */
    @Column(name = "ACCT_YEAR")
    private String acctYear;

    /**
     * 季度
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    QUARTER_CODE
     * Nullable:  true
     */
    @Column(name = "QUARTER_CODE")
    private String quarterCode;

    /**
     * 季度名称
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    QUARTER_NAME
     * Nullable:  true
     */
    @Column(name = "QUARTER_NAME")
    private String quarterName;

    /**
     * 风险库风险编码
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RIAA_RISK_NO
     * Nullable:  true
     */
    @Column(name = "RIAA_RISK_NO")
    private String riaaRiskNo;

    /**
     * 风险发生可能性
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_PROBABILITY
     * Nullable:  true
     */
    @Column(name = "RISK_PROBABILITY")
    private String riskProbability;

    /**
     * 风险发生可能性
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_PROBABILITY_NAME
     * Nullable:  true
     */
    @Column(name = "RISK_PROBABILITY_NAME")
    private String riskProbabilityName;

    /**
     * 发生后影响程度
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    IMPACT_DEGREE
     * Nullable:  true
     */
    @Column(name = "IMPACT_DEGREE")
    private String impactDegree;

    /**
     * 发生后影响程度
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    IMPACT_DEGREE_NAME
     * Nullable:  true
     */
    @Column(name = "IMPACT_DEGREE_NAME")
    private String impactDegreeName;

    /**
     * 风险等级（公司级、基地级、部门级）
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_LEVEL
     * Nullable:  true
     */
    @Column(name = "RISK_LEVEL")
    private String riskLevel;

    /**
     * 风险等级说明
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    RISK_LEVEL_NAME
     * Nullable:  true
     */
    @Column(name = "RISK_LEVEL_NAME")
    private String riskLevelName;

    /**
     * 重要性（重大、重要、一般）
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    IMPORTANCE
     * Nullable:  true
     */
    @Column(name = "IMPORTANCE")
    private String importance;

    /**
     * 重要性说明
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    IMPORTANCE_NAME
     * Nullable:  true
     */
    @Column(name = "IMPORTANCE_NAME")
    private String importanceName;

    /**
     * 重点风险标识
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    IMPORT_RISK_FLAG
     * Nullable:  true
     */
    @Column(name = "IMPORT_RISK_FLAG")
    private String importRiskFlag;

    /**
     * 重点风险状态（01-草稿；10-有效；20-停用）
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    IMPORT_RISK_STATUS
     * Nullable:  true
     */
    @Column(name = "IMPORT_RISK_STATUS")
    private String importRiskStatus;

    /**
     * 重点风险状态说明
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    IMPORT_RISKSTATUS_NAME
     * Nullable:  true
     */
    @Column(name = "IMPORT_RISKSTATUS_NAME")
    private String importRiskstatusName;

    /**
     * 备注
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    REMARK
     * Nullable:  true
     */
    @Column(name = "REMARK")
    private String remark;

    /**
     * 排序
     * <p>
     * Table:     T_RIRI_RISK_HIS
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @Column(name = "ROW_ORDER")
//    private String rowOrder;
    private  Integer rowOrder;
    private static final long serialVersionUID = 1L;
}